<template>
  <view style="height: 1000px;">
    cart
    <button @click="goTop">跳转</button>
  </view>
</template>

<script setup>
import { onReachBottom } from '@dcloudio/uni-app'
const goTop = () => {
  uni.navigateTo({
    url: '/pages/login/index?id=1',

  })
  // uni.redirectTo({ 
  //   url: '/pages/login/index'})
  // uni.switchTab({
  //   url: '/pages/index/index'})
  // uni.reLaunch({
  //   url: '/pages/login/index'})

}
onReachBottom(() => {
  console.log('触底了')
})
</script>

<style lang="scss" scoped>

</style>